﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Threading;

public partial class Satellite_Global : System.Web.UI.Page
{

    protected void Page_Init()
    {
        Resources.Resource.Culture = System.Globalization.CultureInfo.GetCultureInfo(
            HttpContext.Current.Request.QueryString["culture"] ?? "en-US"
        );
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        ltrDisplay.Text = Resources.Resource.Hello;
    }

    protected void ChangeCulture(object sender, EventArgs e)
    {
        string culture = (sender as IButtonControl).CommandArgument;
        Response.Redirect("Global.aspx?culture="+culture);
    }

}
